import request from '@/utils/request'

// 查询结算类别管理列表
export function listSettlementCat(query) {
  return request({
    url: '/bms/settlementCat/list',
    method: 'get',
    params: query
  })
}

// 查询结算类别管理详细
export function getSettlementCat(id) {
  return request({
    url: '/bms/settlementCat/' + id,
    method: 'get'
  })
}

// 新增结算类别管理
export function addSettlementCat(data) {
  return request({
    url: '/bms/settlementCat',
    method: 'post',
    data: data
  })
}

// 修改结算类别管理
export function updateSettlementCat(data) {
  return request({
    url: '/bms/settlementCat',
    method: 'put',
    data: data
  })
}

// 删除结算类别管理
export function delSettlementCat(id) {
  return request({
    url: '/bms/settlementCat/' + id,
    method: 'delete'
  })
}

// 导出结算类别管理
export function exportSettlementCat(query) {
  return request({
    url: '/bms/settlementCat/export',
    method: 'get',
    params: query
  })
}